// JavaScript Document

$(function(){
	$("#checkboxalltop, #checkboxallbottom").click(function()
  	{
	
   	var checked_status = this.checked;

   $("input:checkbox").each(function()
   	{
		//alert('hi');
    	this.checked = checked_status;

   	});

	});	
			
});

function confirmFirst(url)
{
	var a = confirm('Are you sure?');
	if(a)
	{
		window.location = url;
	}
}


function showDetail(id)
{
	$(".detail-all").hide();
	$("#detail-all-"+id).fadeIn(1000);
	
}
